#include <stdio.h>
int main()
{
	float I,J;
	printf("input the I:");
	scanf("%f",&I);
	if(I<=100000.0)
		J=I*0.1;
	else if(I>100000.0&&I<=200000.0)
		J=(I-100000.0)*0.75+10000.0;
	else if(I>200000.0&&I<=400000.0)
		J=(I-200000.0)*0.05;
	else if(I>400000.0&&I<=600000.0)
		J=(I-400000.0)*0.03;
	else if(I>600000.0&&I<=1000000.0)
		J=(I-600000.0)*0.015;
	else if(I>1000000.0)
		J=(I-1000000.0)*0.01;
	else
		printf("your input is wrong");
	printf("J=%3.4f\n",J);
}
